package junit;

import TeamService.NameListService;
import Teamdomain.Employee;

/**
 * @program: Demo2
 * @description:
 * @author: yan guang
 * @create: 2020-04-22 12:29
 */
public class NameListServiceTest {
    public static void main(String[] args) {
        NameListService nameListService=new NameListService();
        Employee[] employees= nameListService.getAllEmployees();
        for (int i = 0; i < employees.length; i++) {
            System.out.println(employees[i].toString());//默认的是调用toString，要是不重写的话就是调用的Object里面的toString.
        }
    }
}
